<include file="../header" />
<body class="J_scroll_fixed">
<script type="text/javascript">
    $(function() {
        $("button#send").click(function() {

            var companyId = $("select[name=companyId]").val();
            if(companyId == "") {
                alert("销售不能为空");
                return false;
            }

            $("form").submit();

        });
    })

</script>
<script type="text/javascript"  src="__TMP__/assets/js/ueditor/ueditor.config.js"></script>
<script type="text/javascript"  src="__TMP__/assets/js/ueditor/ueditor.all.min.js"></script>
<div class="wrap jj">
    <div class="common-form">
        <form method="post" class="form-horizontal J_ajaxForm" action="{:U('messagebox/notify')}">
            <fieldset>
                <input type="hidden" value="{$messagebox.messagebox_id}" name="id" />
                <div class="control-group">
                    <label class="control-label">用户姓名：</label>
                    <div class="controls">
                        <input type="text" class="input" name="name" value="{$messagebox.name}">
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label">用户城市：</label>
                    <div class="controls">
                        <input type="text" class="input" name="city" value="{$messagebox.city}">
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label">用户手机：</label>
                    <div class="controls">
                        <input type="text" class="input" name="number" value="{$messagebox.number}">
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label">提交时间：</label>
                    <div class="controls">
                        <input type="text" class="input" name="time" value="{$messagebox.create_time}">
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label">提交内容：</label>
                    <div class="controls">
                        <textarea style="height:9rem;" name="messageContent">{$messagebox.message_content}</textarea>
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label">产品：</label>
                    <div class="controls">
                        <input type="text" class="input" name="product" value="{$messagebox.product}">
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label">数量：</label>
                    <div class="controls">
                        <input type="text" class="input" name="count" value="{$messagebox.count}">
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label">医院：</label>
                    <div class="controls">
                        <input type="text" class="input" name="hospital" value="{$messagebox.hospital}">
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label">医生：</label>
                    <div class="controls">
                        <input type="text" class="input" name="doctor" value="{$messagebox.doctor}">
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label">选择销售：</label>
                    <div class="controls">
                        <select style="width:100px" name="companyId"><option value="">请选择</option>{:getCompanySelectOptionHtml(0, 0)}</select>
                    </div>
                </div>
            </fieldset>
            <div class="form-actions">
                <button type="submit" id="send" class="btn btn-primary btn_submit">确认通知</button>
                <a class="btn" href="__URL__">返回</a>
            </div>
        </form>
    </div>
</div>
<script src="__ROOT__/statics/js/common.js"></script>
</body>
</html>